package com.scap.authen.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table( name = "JA_MENU")
public class Menu {
	
	@Id
	@Column ( name = "MENU_ID", length = 200)
	private String vaMenuId;
	
	@Column ( name = "APPLICATION_ID", length = 2)
	private String vaApplicationId;
	
	@Column ( name = "MENU_NAME_EN", length = 200)
	private String vaMenuNameEn;
	
	@Column ( name = "MENU_NAME_TH", length = 200)
	private String vaMenuNameTh;
	
	@Column ( name = "MENU_URL", length = 200)
	private String vaMenuUrl;
	
	@Column ( name = "MENU_PARENT_ID", length = 200)
	private String vaMenuParentId;
	
	@Column ( name = "MENU_PARENT", length = 2)
	private String vaMenuParent;
	
	@Column ( name = "MENU_SEQ")
	private int vnMenuSeq;
	
	@Column ( name = "MENU_ROUTE_PREVIOUS_ID", length = 10)
	private String vaRoutePreviousId;
	
	@Column ( name = "MENU_ROUTE_ID", length = 15)
	private String vaMenuRouteId;
	
	@Column ( name = "MENU_ROUTE_PARENT_ID", length = 10)
	private String vaMenuRouteParentId;
	
	@Column ( name = "INSERT_USER_ID")
	private int vnInsertUserId;
	
	@Column ( name = "INSERT_DATE", length = 8)
	private String vaInsertDate;
	
	@Column( name = "INSERT_TIME", length = 6)
	private String vaInsertTime;
	
	@Column ( name = "UPDATE_USER_ID")
	private int vnUpdateUserId;
	
	@Column ( name = "UPDATE_DATE", length = 8)
	private String vaUpdateDate;
	
	@Column ( name = "UPDATE_TIME", length = 6)
	private String vaUpdateTime;
	
	public Menu(String vaApplicationId, String vaMenuId, String vaMenuNameEn,
			String vaMenuNameTh, String vaMenuUrl, String vaMenuParentId,
			String vaMenuParent, int vnMenuSeq, String vaRoutePreviousId,
			String vaMenuRouteId, String vaMenuRouteParentId,
			int vnInsertUserId, String vaInsertDate, String vaInsertTime,
			int vnUpdateUserId, String vaUpdateDate, String vaUpdateTime) {
		this.vaApplicationId = vaApplicationId;
		this.vaMenuId = vaMenuId;
		this.vaMenuNameEn = vaMenuNameEn;
		this.vaMenuNameTh = vaMenuNameTh;
		this.vaMenuUrl = vaMenuUrl;
		this.vaMenuParentId = vaMenuParentId;
		this.vaMenuParent = vaMenuParent;
		this.vnMenuSeq = vnMenuSeq;
		this.vaRoutePreviousId = vaRoutePreviousId;
		this.vaMenuRouteId = vaMenuRouteId;
		this.vaMenuRouteParentId = vaMenuRouteParentId;
		this.vnInsertUserId = vnInsertUserId;
		this.vaInsertDate = vaInsertDate;
		this.vaInsertTime = vaInsertTime;
		this.vnUpdateUserId = vnUpdateUserId;
		this.vaUpdateDate = vaUpdateDate;
		this.vaUpdateTime = vaUpdateTime;
	}
	
	public Menu (){
		
	}

	public String getVaApplicationId() {
		return vaApplicationId;
	}

	public void setVaApplicationId(String vaApplicationId) {
		this.vaApplicationId = vaApplicationId;
	}

	public String getVaMenuId() {
		return vaMenuId;
	}

	public void setVaMenuId(String vaMenuId) {
		this.vaMenuId = vaMenuId;
	}

	public String getVaMenuNameEn() {
		return vaMenuNameEn;
	}

	public void setVaMenuNameEn(String vaMenuNameEn) {
		this.vaMenuNameEn = vaMenuNameEn;
	}

	public String getVaMenuNameTh() {
		return vaMenuNameTh;
	}

	public void setVaMenuNameTh(String vaMenuNameTh) {
		this.vaMenuNameTh = vaMenuNameTh;
	}

	public String getVaMenuUrl() {
		return vaMenuUrl;
	}

	public void setVaMenuUrl(String vaMenuUrl) {
		this.vaMenuUrl = vaMenuUrl;
	}

	public String getVaMenuParentId() {
		return vaMenuParentId;
	}

	public void setVaMenuParentId(String vaMenuParentId) {
		this.vaMenuParentId = vaMenuParentId;
	}

	public String getVaMenuParent() {
		return vaMenuParent;
	}

	public void setVaMenuParent(String vaMenuParent) {
		this.vaMenuParent = vaMenuParent;
	}

	public int getVnMenuSeq() {
		return vnMenuSeq;
	}

	public void setVnMenuSeq(int vnMenuSeq) {
		this.vnMenuSeq = vnMenuSeq;
	}

	public String getVaRoutePreviousId() {
		return vaRoutePreviousId;
	}

	public void setVaRoutePreviousId(String vaRoutePreviousId) {
		this.vaRoutePreviousId = vaRoutePreviousId;
	}

	public String getVaMenuRouteId() {
		return vaMenuRouteId;
	}

	public void setVaMenuRouteId(String vaMenuRouteId) {
		this.vaMenuRouteId = vaMenuRouteId;
	}

	public String getVaMenuRouteParentId() {
		return vaMenuRouteParentId;
	}

	public void setVaMenuRouteParentId(String vaMenuRouteParentId) {
		this.vaMenuRouteParentId = vaMenuRouteParentId;
	}

	public int getVnInsertUserId() {
		return vnInsertUserId;
	}

	public void setVnInsertUserId(int vnInsertUserId) {
		this.vnInsertUserId = vnInsertUserId;
	}

	public String getVaInsertDate() {
		return vaInsertDate;
	}

	public void setVaInsertDate(String vaInsertDate) {
		this.vaInsertDate = vaInsertDate;
	}

	public String getVaInsertTime() {
		return vaInsertTime;
	}

	public void setVaInsertTime(String vaInsertTime) {
		this.vaInsertTime = vaInsertTime;
	}

	public int getVnUpdateUserId() {
		return vnUpdateUserId;
	}

	public void setVnUpdateUserId(int vnUpdateUserId) {
		this.vnUpdateUserId = vnUpdateUserId;
	}

	public String getVaUpdateDate() {
		return vaUpdateDate;
	}

	public void setVaUpdateDate(String vaUpdateDate) {
		this.vaUpdateDate = vaUpdateDate;
	}

	public String getVaUpdateTime() {
		return vaUpdateTime;
	}

	public void setVaUpdateTime(String vaUpdateTime) {
		this.vaUpdateTime = vaUpdateTime;
	}

	@Override
	public String toString() {
		return "Menu [vaApplicationId=" + vaApplicationId + ", vaMenuId="
				+ vaMenuId + ", vaMenuNameEn=" + vaMenuNameEn
				+ ", vaMenuNameTh=" + vaMenuNameTh + ", vaMenuUrl=" + vaMenuUrl
				+ ", vaMenuParentId=" + vaMenuParentId + ", vaMenuParent="
				+ vaMenuParent + ", vnMenuSeq=" + vnMenuSeq
				+ ", vaRoutePreviousId=" + vaRoutePreviousId
				+ ", vaMenuRouteId=" + vaMenuRouteId + ", vaMenuRouteParentId="
				+ vaMenuRouteParentId + ", vnInsertUserId=" + vnInsertUserId
				+ ", vaInsertDate=" + vaInsertDate + ", vaInsertTime="
				+ vaInsertTime + ", vnUpdateUserId=" + vnUpdateUserId
				+ ", vaUpdateDate=" + vaUpdateDate + ", vaUpdateTime="
				+ vaUpdateTime + "]";
	}
}
